﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Emptiness.Utils
{
    public class MathUtils
    {
        private static Random random = new Random();
        private static MathUtils singleton = null;

        public static MathUtils GetMathUtils()
        {
            if (singleton == null)
                singleton = new MathUtils();
            return singleton;
        }


        public int GetRandomNumber()
        {
            return random.Next();
        }

        public int GetRandomNumberMaxNumber(int maxNumber)
        {
            return random.Next(maxNumber);
        }
    }
}
